package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.AddressBook;
import com.itheima.reggie.entity.ShoppingCart;

/**
 * @author ck
 * @date 2021/10/18 19:45
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 添加到购物车
     * @param shoppingCart
     * @return
     */
    public R<ShoppingCart> add(ShoppingCart shoppingCart);

    /**
     * 减少商品
     */
    public R<String> sub(ShoppingCart shoppingCart);
}
